﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BBPA.Admin;
using BBPA.BLL;

namespace BBPA.Admin.Sys.Setting
{
    public partial class info : FormPage
    {
        Config c = new Config();
        protected void Page_Load(object sender, EventArgs e)
        {
            Master.formState = EnumHelper.FormState.edit;
        }

        /// <summary>
        /// 绑定表单数据【修改时用】
        /// </summary>
        public override void Form_Bind()
        {
            DataTable dt = c.GetList(" ModelName='infomsg'").Tables[0];
            txtinfomsg.Text = dt.Rows[0]["Data"].ToString();
        }
        /// <summary>
        /// 提交
        /// </summary>
        public override void Form_Submit()
        {
            c.Update("infomsg", this.txtinfomsg.Text.Trim());
            
           Master.SubmitOK();
           
        }
    }
}